import Cookies from 'js-cookie'

const TokenKey = 'cc3688_shop_admin_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const MyId = 'cc3688_current_user_id'

export function getId() {
  return Cookies.get(MyId)
}

export function setId(id) {
  return Cookies.set(MyId, id)
}

export function removeId() {
  return Cookies.remove(MyId)
}
